<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>分页器</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    .box {
      text-align: center;
      font-size: 14px;
    }
    .box a {
      display: inline-block;
      text-decoration: none;
      color: black;
      width: 36px;
      height: 36px;
      border: 1px solid black;
      text-align: center;
      line-height: 36px;
    }
    .box .prev,
    .box .next {
      width: 88px;
    }
    .box .current,
    .box .elip{
      border: none;
    }
    .box input {
      width: 36px;
      height: 36px;
      outline: none;
    }
    .box .btn {
      width: 88px;
      height: 36px;
    }
    .pic {
      width: 0;
      height: 0;
      /* border-top: 100px solid transparent;
      border-bottom: 0 solid blue;
      border-left: 0 solid red;
      border-right: 40px solid green; */
      border-color: transparent green transparent transparent;
      border-style: solid;
      border-width: 100px 40px 0 0;
    }
  </style>
</head>

<body>
  <div class="box">
    <a href="#" class="prev">&lt;&lt;上一页</a>
    <a href="#">2</a>
    <a href="#" class="current">3</a>
    <a href="#">4</a>
    <a href="#">5</a>
    <a href="#">6</a>
    <a href="#">7</a>
    <a href="#" class="elip">...</a>
    <a href="#">9</a>
    <a href="#" class="next">&gt;&gt;下一页</a>
    到第
    <input type="text">
    页
    <button class="btn">确定</button>
  </div>
  <div class="pic">

  </div>
</body>

</html>